home *** CD-ROM | disk | FTP | other *** search
- Subject: Writing to a SUSink
- Sent: 9/18/96 11:04 AM
- Received: 9/18/96 11:04 AM
- From: Jerome Jahnke <j-jahnke@uchicago.edu>
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List
-
-
- I decided at a later date to make a part I had been working into an
- embeddable part. So what I did is steal all the code from a new embeddable
- part made with PartMaker but I can't open it.
-
- When I create the stationary I have this in my CBaseContent class.
-
- unsigned long count = fProxyList->Count();
- archive << count;
-
- But when I try to open the stationry my Internalize function which looks
- like this.
-
- unsigned long count;
- archive >> count;
-
- says that count is 0x0000FFFF instead of 0x00000000 which is what I put
- there. So why are the last four bytes F's instead of 0's and should I
- convert those to FW_Fixed's which seem to write OK. I haven't tried that,
- but this is the next step. I am curious if The sink is only reading or
- writing the first four bytes. Or if I am doing something really really
- wrong.
-
- Jer,
-
- ------------------------------------------------------------------------------
- Jerome Jahnke |Well, I was only a kid didn't know enough to be afraid
- BSD Academic Computing |Playing the game, but not the way the big boys played
- University of Chicago |Nothing to lose maybe I had something to trade
- j-jahnke@uchicago.edu |The way the big wheel spins * The Big Wheel -- N Peart
- ------------------------------------------------------------------------------
- รน